package com.jt.demo7_di;

public class Car {
    private String name;
    private String color;

    public Car() {
        System.out.println("我是Car无参构造");
    }

    public Car(String name, String color) {
        this.name = name;
        this.color = color;
    }

    public void go(){
        System.out.println("gogogog!!"+name+":"+color);
    }
}
